This commit is contained in:
Dihak M N A 2018-07-02 01:18:41 +00:00 committed by GitHub
commit 68ac0f4b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 16 deletions

View File

@ -6,7 +6,7 @@ Over the last 10 years, I have used and tweaked Vim. This configuration is the u
There are two versions:
* **The Basic**: If you want something small just copy [basic.vim](https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim) into your ~/.vimrc and you will have a good basic setup
* **The Basic**: If you want something small just copy [basic.vim](https://github.com/dihak/vimrc/blob/master/vimrcs/basic.vim) into your ~/.vimrc and you will have a good basic setup
* **The Awesome**: Includes a ton of useful plugins, color schemes, and configurations
I would, of course, recommend using the awesome version.
@ -16,13 +16,13 @@ I would, of course, recommend using the awesome version.
### Install for your own user only
The awesome version includes a lot of great plugins, configurations and color schemes that make Vim a lot better. To install it simply do following from your terminal:
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
git clone --depth=1 https://github.com/dihak/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
### Install for multiple users
To install for multiple users, the repository needs to be cloned to a location accessible for all the intended users.
git clone --depth=1 https://github.com/amix/vimrc.git /opt/vim_runtime
git clone --depth=1 https://github.com/dihak/vimrc.git /opt/vim_runtime
sh ~/.vim_runtime/install_awesome_parameterized.sh /opt/vim_runtime user0 user1 user2
# to install for all users with home directories
sh ~/.vim_runtime/install_awesome_parameterized.sh /opt/vim_runtime --all
@ -40,11 +40,11 @@ Some other fonts that Awesome will try to use:
## How to install the Basic version?
The basic version is just one file and no plugins. Just copy [basic.vim](https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim) and paste it into your vimrc.
The basic version is just one file and no plugins. Just copy [basic.vim](https://github.com/dihak/vimrc/blob/master/vimrcs/basic.vim) and paste it into your vimrc.
The basic version is useful to install on remote servers where you don't need many plugins, and you don't do many edits.
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
git clone --depth=1 https://github.com/dihak/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_basic_vimrc.sh
@ -109,8 +109,8 @@ I recommend reading the docs of these plugins to understand them better. Each pl
## Included color schemes
* [peaksea](https://github.com/vim-scripts/peaksea): The default
* [vim-colors-solarized](https://github.com/altercation/vim-colors-solarized)
* [peaksea](https://github.com/vim-scripts/peaksea)
* [vim-colors-solarized](https://github.com/altercation/vim-colors-solarized): The default
* [vim-irblack](https://github.com/wgibbs/vim-irblack)
* [mayansmoke](https://github.com/vim-scripts/mayansmoke)
* [vim-pyte](https://github.com/therubymug/vim-pyte)

View File

@ -51,6 +51,19 @@ nmap <leader>w :w!<cr>
" (useful for handling the permission-denied error)
command W w !sudo tee % > /dev/null
" Show number and set to relative number
set number
set relativenumber
" Toggle relative number
nnoremap <silent> <leader>nb :set relativenumber!<CR>
" Make j and k move to the next row, not the file line
nnoremap j gj
nnoremap k gk
" Remap esc key to jk
inoremap jk <esc>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => VIM user interface
@ -229,8 +242,8 @@ map <leader>h :bprevious<cr>
map <leader>tn :tabnew<cr>
map <leader>to :tabonly<cr>
map <leader>tc :tabclose<cr>
map <leader>tm :tabmove
map <leader>t<leader> :tabnext
map <leader>tm :tabmove<cr>
map <leader>t<leader> :tabnext<cr>
" Let 'tl' toggle between this and the last accessed tab
let g:lasttab = 1

View File

@ -29,7 +29,7 @@ set guioptions-=L
" Colorscheme
set background=dark
colorscheme peaksea
colorscheme solarized
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

View File

@ -77,7 +77,7 @@ set grepprg=/bin/grep\ -nH
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Nerd Tree
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:NERDTreeWinPos = "right"
let g:NERDTreeWinPos = "left"
let NERDTreeShowHidden=0
let NERDTreeIgnore = ['\.pyc$', '__pycache__']
let g:NERDTreeWinSize=35
@ -104,11 +104,7 @@ au FileType mako vmap Si S"i${ _(<esc>2f"a) }<esc>
" => lightline
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:lightline = {
\ 'colorscheme': 'wombat',
\ }
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'colorscheme': 'solarized',
\ 'active': {
\ 'left': [ ['mode', 'paste'],
\ ['fugitive', 'readonly', 'filename', 'modified'] ],