diff options
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 39 |
1 files changed, 39 insertions, 0 deletions
| @@ -0,0 +1,39 @@ | |||
| 1 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
| 2 | " => Custom Config | ||
| 3 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
| 4 | set cursorline | ||
| 5 | set number | ||
| 6 | set relativenumber | ||
| 7 | set showcmd | ||
| 8 | "set clipboard=unnamedplus | ||
| 9 | nmap <c-c> :q<cr> | ||
| 10 | |||
| 11 | |||
| 12 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
| 13 | " => Make Alt key works on Gnome terminal | ||
| 14 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
| 15 | " Solution is here: https://stackoverflow.com/questions/6778961 | ||
| 16 | let c='a' | ||
| 17 | while c <= 'z' | ||
| 18 | exec "set <A-".c.">=\e".c | ||
| 19 | exec "imap \e".c." <A-".c.">" | ||
| 20 | let c = nr2char(1+char2nr(c)) | ||
| 21 | endw | ||
| 22 | set timeout ttimeoutlen=50 | ||
| 23 | |||
| 24 | |||
| 25 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
| 26 | " => vim-plug | ||
| 27 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
| 28 | " run :PlugInstall to install plugins | ||
| 29 | |||
| 30 | call plug#begin('~/.vim/plugged') | ||
| 31 | |||
| 32 | " Add indent line | ||
| 33 | Plug 'Yggdroot/indentLine' | ||
| 34 | Plug 'mileszs/ack.vim' | ||
| 35 | Plug 'tpope/vim-surround' | ||
| 36 | Plug 'lifepillar/pgsql.vim' | ||
| 37 | |||
| 38 | " Initialize plugin system | ||
| 39 | call plug#end() | ||