aboutsummaryrefslogtreecommitdiffhomepage
path: root/vimrc
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-01-21 23:08:48 +0800
committertypebrook <typebrook@gmail.com>2019-01-21 23:08:48 +0800
commit9b1192c42be7948f52cd13680729c034bc4cacb6 (patch)
tree437db2f9d0441e04fc8f7d8436f661dce77e9503 /vimrc
parent1863476fd67c3b247d9f3ca5bd115cab23a4d3ee (diff)
update
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc39
1 files changed, 39 insertions, 0 deletions
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..2323fc0
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,39 @@
1"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2" => Custom Config
3"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4set cursorline
5set number
6set relativenumber
7set showcmd
8"set clipboard=unnamedplus
9nmap <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
16let c='a'
17while c <= 'z'
18 exec "set <A-".c.">=\e".c
19 exec "imap \e".c." <A-".c.">"
20 let c = nr2char(1+char2nr(c))
21endw
22set timeout ttimeoutlen=50
23
24
25"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
26" => vim-plug
27"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
28" run :PlugInstall to install plugins
29
30call plug#begin('~/.vim/plugged')
31
32" Add indent line
33Plug 'Yggdroot/indentLine'
34Plug 'mileszs/ack.vim'
35Plug 'tpope/vim-surround'
36Plug 'lifepillar/pgsql.vim'
37
38" Initialize plugin system
39call plug#end()