Some ranger shortcuts and cava color theme change

This commit is contained in:
Tuan-Dat Tran
2018-11-30 22:27:56 +01:00
parent db834c2d0d
commit 160743e2e7
9 changed files with 35 additions and 11 deletions

View File

@@ -1,7 +1,11 @@
" Shortcuts
imap ;default package main<Enter><Enter>import (<Enter>"fmt"<Enter>)<Enter><Enter>func main() {<Enter>}<Esc>O
imap ;main package main<Enter><Enter>import (<Enter>"fmt"<Enter>)<Enter><Enter>func main() {<Enter>}<Esc>O
imap { {<Enter>}<Esc>kA
imap ( ()<Esc>i
imap () ()
" Compiling
map <C-c><C-c> <Esc>:!go run %<Enter>
map <C-c><C-b> <Esc>:!go build %; ./%<<Enter>
map <C-c><C-w> <Esc>:!GOOS=windows GOARCH=386 go build -o %<.exe %
map <C-c><C-c> <Esc>:!clear; go run %<Enter>
map <C-c><C-b> <Esc>:!clear; go build %; ./%<<Enter>
map <C-c><C-w> <Esc>:!clear; GOOS=windows GOARCH=386 go build -o %<.exe %

View File

@@ -0,0 +1,4 @@
imap { {<Enter>}<Esc>kA
imap ( ()<Esc>i
imap () ()

View File

@@ -5,7 +5,7 @@
imap <leader>ifm if<Space>__name__<Space>==<Space>'__main__':<Enter>
" Compiling
map <C-c><C-c> <Esc>:!python %<Enter>
map <C-c><C-c> <Esc>:!clear; python %<Enter>
" Use the below highlight group when displaying bad whitespace is desired.
highlight BadWhitespace ctermbg=red guibg=red

3
vim/.vim/ftplugin/sh.vim Normal file
View File

@@ -0,0 +1,3 @@
" Compilation
map <C-c><C-c> <Esc>:!clear&./%<Enter>