Some ranger shortcuts and cava color theme change
This commit is contained in:
@@ -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 %
|
||||
|
||||
4
vim/.vim/ftplugin/java.vim
Normal file
4
vim/.vim/ftplugin/java.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
imap { {<Enter>}<Esc>kA
|
||||
imap ( ()<Esc>i
|
||||
imap () ()
|
||||
|
||||
@@ -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
3
vim/.vim/ftplugin/sh.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
" Compilation
|
||||
map <C-c><C-c> <Esc>:!clear&./%<Enter>
|
||||
|
||||
Reference in New Issue
Block a user