diff options
author | typebrook <typebrook@gmail.com> | 2019-01-21 23:08:48 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-01-21 23:08:48 +0800 |
commit | 9b1192c42be7948f52cd13680729c034bc4cacb6 (patch) | |
tree | 437db2f9d0441e04fc8f7d8436f661dce77e9503 /vimrc | |
parent | 1863476fd67c3b247d9f3ca5bd115cab23a4d3ee (diff) |
update
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() | ||