diff --git a/README.md b/README.md index adc63d24..6f6be7f2 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index 11d1ed81..987b3b69 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -51,6 +51,19 @@ nmap w :w! " (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 nb :set relativenumber! + +" 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 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => VIM user interface @@ -229,8 +242,8 @@ map h :bprevious map tn :tabnew map to :tabonly map tc :tabclose -map tm :tabmove -map t :tabnext +map tm :tabmove +map t :tabnext " Let 'tl' toggle between this and the last accessed tab let g:lasttab = 1 diff --git a/vimrcs/extended.vim b/vimrcs/extended.vim index a4f0c9b9..85a87dc3 100644 --- a/vimrcs/extended.vim +++ b/vimrcs/extended.vim @@ -29,7 +29,7 @@ set guioptions-=L " Colorscheme set background=dark -colorscheme peaksea +colorscheme solarized """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" diff --git a/vimrcs/plugins_config.vim b/vimrcs/plugins_config.vim index b50f9824..fc9a289a 100644 --- a/vimrcs/plugins_config.vim +++ b/vimrcs/plugins_config.vim @@ -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${ _(2f"a) } " => lightline """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:lightline = { - \ 'colorscheme': 'wombat', - \ } - -let g:lightline = { - \ 'colorscheme': 'wombat', + \ 'colorscheme': 'solarized', \ 'active': { \ 'left': [ ['mode', 'paste'], \ ['fugitive', 'readonly', 'filename', 'modified'] ],