add vim-go and those setting
This commit is contained in:
@@ -17,6 +17,7 @@ Plug 'vimwiki/vimwiki'
|
|||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set title
|
set title
|
||||||
@@ -39,6 +40,7 @@ set noshowcmd
|
|||||||
set number relativenumber
|
set number relativenumber
|
||||||
" Enable autocompletion:
|
" Enable autocompletion:
|
||||||
set wildmode=longest,list,full
|
set wildmode=longest,list,full
|
||||||
|
set completeopt=longest,menuone
|
||||||
" Disables automatic commenting on newline:
|
" Disables automatic commenting on newline:
|
||||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||||
" Perform dot commands over visual blocks:
|
" Perform dot commands over visual blocks:
|
||||||
@@ -154,3 +156,4 @@ nnoremap <leader>h :call ToggleHiddenAll()<CR>
|
|||||||
" So ":vs ;cfz" will expand into ":vs /home/<user>/.config/zsh/.zshrc"
|
" So ":vs ;cfz" will expand into ":vs /home/<user>/.config/zsh/.zshrc"
|
||||||
" if typed fast without the timeout.
|
" if typed fast without the timeout.
|
||||||
source ~/.config/nvim/shortcuts.vim
|
source ~/.config/nvim/shortcuts.vim
|
||||||
|
au filetype go inoremap <buffer> . .<C-x><C-o>
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ m ${XDG_MUSIC_DIR:-$HOME/Music}
|
|||||||
mn /mnt
|
mn /mnt
|
||||||
pp ${XDG_PICTURES_DIR:-$HOME/Pictures}
|
pp ${XDG_PICTURES_DIR:-$HOME/Pictures}
|
||||||
sc $HOME/.local/bin
|
sc $HOME/.local/bin
|
||||||
src $HOME/.local/src
|
src $HOME/src
|
||||||
vv ${XDG_VIDEOS_DIR:-$HOME/Videos}
|
vv ${XDG_VIDEOS_DIR:-$HOME/Videos}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# to clean up.
|
# to clean up.
|
||||||
|
|
||||||
# Adds `~/.local/bin` to $PATH
|
# Adds `~/.local/bin` to $PATH
|
||||||
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}:~/.local/share/go/bin"
|
||||||
|
|
||||||
unsetopt PROMPT_SP
|
unsetopt PROMPT_SP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user