Add functions to vimrc and basrc

This commit is contained in:
Zachary Dunn 2019-08-24 10:43:47 -04:00
parent ef9a24e063
commit 1a052f1d98
2 changed files with 15 additions and 0 deletions

View File

@ -125,3 +125,9 @@ export GEM_PATH="$HOME/gems:"
export PATH="$PATH:$GEM_HOME/bin/:"
# shortcut for creating and chaging to a directory
function mkd() {
mkdir "$1"
cd "$1"
}

9
.vimrc
View File

@ -254,3 +254,12 @@ nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "\<cr>"
" Put these lines at the very end of your vimrc file.
"
" Load all plugins now.
" Plugins need to be added to runtimepath before helptags can be generated.
packloadall
" Load all of the helptags now, after plugins have been loaded.
" All messages and errors will be ignored.
silent! helptags ALL