Set key files

This commit is contained in:
2018-11-30 00:52:23 -05:00
parent 8ca4661cb2
commit 16a16e71da
10 changed files with 50 additions and 100 deletions

View File

@@ -28,12 +28,18 @@ set timeoutlen=500
set hlsearch
" }}} set x=y "
" commands for file types {{{ "
autocmd VimResized * wincmd =
autocmd BufNewFile,BufRead .* set syntax=sh
autocmd Filetype css,htmldjango,html,tex,txt,markdown set tabstop=2 shiftwidth=2 expandtab
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd Filetype markdown set textwidth=0
autocmd BufWritePost key_*.txt !bash ~/linux-config/shortcuts.sh
" }}} commands for file types "
" vim-plug {{{ "
" plug auto-install
if empty(glob('~/.vim/autoload/plug.vim'))
@@ -202,8 +208,10 @@ nnoremap <leader>rl q:i.s///g<left><left><left>
nnoremap <leader>rv :source $MYVIMRC<CR>
" replace in entire file
nnoremap <leader>R q:i%s///g<ESC>2F/i
" sort lines
nnoremap <leader>s q:i.,.+sort<ESC>Fsi
" set syntax to shell (for dotfiles)
nnoremap <leader>s :set syn=sh<CR>
nnoremap <leader>sh :set syn=sh<CR>
" format current line
nnoremap <leader>w Vgq
" format this and next line

View File

@@ -2,8 +2,8 @@
# Path to your oh-my-zsh installation.
export ZSH=/home/kevin/.oh-my-zsh
export EDITOR=/usr/bin/vim
export VISUAL=/usr/bin/vim
export EDITOR=/usr/bin/nvim
export VISUAL=/usr/bin/nvim
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.