This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cwd must look into it, it's not changing pwd, but how does it affect LSP? | |
call term_start(&shell, {'cwd': 'whatever'}) | |
:let $VIM_DIR=expand('%:p:h')<CR>:terminal<CR>cd $VIM_DIR<CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MISC | |
VIM-MULTIPLE-CURSORS | |
https://github.com/terryma/vim-multiple-cursors | |
# crashed a lot, unstable for me | |
# probably incompatible with some plugins (although I fixed compatibility with ncm2 - check doc for ncm and multiple-cursos) | |
# should test again without plugins | |
NEOMAKE | |
https://github.com/neomake/neomake | |
# elixir it does not have credo, but it can be setup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zshrc | |
export FZF_DEFAULT_OPTS="--history=$HOME/.fzf_history" | |
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""' | |
# vimrc | |
# so I can have command history (CTRL-p/n) | |
let g:fzf_history_dir = '--history=$HOME/.fzf_history' | |
" FZF Esc collides with terminal Esc remap | So I can close with Esc | |
autocmd FileType fzf :tnoremap <buffer> <Esc> <C-g> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" languageclient | |
let g:LanguageClient_serverCommands = { | |
\ 'c': [ 'clangd' ], | |
\ 'cpp': [ 'clangd' ], | |
\ 'javascript': [ 'javascript-typescript-stdio' ], | |
\ 'python': [ 'pyls' ], | |
\ 'ruby': [ 'solargraph', 'stdio' ], | |
\ } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'tpope/vim-unimpaired' | |
" clever use of brackets | |
'tpope/tpope/vim-surround' | |
" clever mappings to change 'surroundings' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvm get master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ORIGINAL | |
# bind-key v split-window -h | |
# bind-key s split-window -v | |
# bind-key h select-pane -L | |
# bind-key j select-pane -D | |
# bind-key k select-pane -U | |
# bind-key l select-pane -R | |
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | |
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" | |
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" tmux | |
fun! DoesPaneAlreadyExists() | |
let panes_list = split(system('tmux list-panes -s -F "#{pane_index}"', "\n")) | |
let panes_count = len(panes_list) | |
if panes_count > 1 | |
exec ':echo "' . panes_list[1] . '"' | |
call system('tmux kill-pane -t ' . panes_list[1] ) | |
else | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plug 'prabirshrestha/asyncomplete.vim' | |
Plug 'prabirshrestha/asyncomplete-buffer.vim' | |
Plug 'prabirshrestha/asyncomplete-tags.vim' | |
Plug 'yami-beta/asyncomplete-omni.vim' | |
Plug 'prabirshrestha/asyncomplete-file.vim' | |
Plug 'prabirshrestha/asyncomplete-necovim.vim' | |
call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({ | |
\ 'name': 'buffer', | |
\ 'whitelist': ['*'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |