-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
92 lines (92 loc) · 3.47 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim " set the runtime path to include Vundle and initialize
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree.git'
Plugin 'easymotion/vim-easymotion'
Plugin 'vim-scripts/summerfruit256.vim'
Plugin 'vim-scripts/Relaxed-Green'
Plugin 'tpope/vim-vividchalk'
call vundle#end()
filetype plugin indent on " required
let g:netrw_liststyle=3 " Set file explorer to list NERDTree style directory
autocmd Filetype gitcommit setlocal spell spelllang=en_us
autocmd Filetype gitcommit set textwidth=72
:syntax enable
:set t_Co=256
:colorscheme summerfruit256
":colorscheme relaxedgreen
:let NERDTreeHijackNetrw=0
:let NERDTreeShowBookmarks=1
:let NERDTreeQuitOnOpen=1
:set ruler number relativenumber
:set hlsearch
:set tabstop=4 softtabstop=4 shiftwidth=4 et
:set autoindent
:set pastetoggle=<f5>
:set incsearch
:set winminwidth=20
:set winwidth=100
:set winminheight=1
:set winheight=55
:inoremap <C-P> <C-R>=EnterPrint()<CR>
:inoremap <C-X> <C-X><C-L><C-N><C-R>=CompleteLineWithSingleMatch()<CR>
:inoremap <C-K> <C-R>=SelectPrevAutoComplete()<CR>
:inoremap <C-J> <C-R>=SelectNextAutoComplete()<CR>
:inoremap <Tab> <C-R>=TabOrComplete()<CR><C-R>=TabOrCompleteWithSingleMatch()<CR>
"Mapped meta-j,k,h,l to be arrow keys in insert mode
:inoremap ˙ <Left>
:inoremap ¬ <Right>
:inoremap ˚ <Up>
:inoremap ∆ <Down>
:map <Space> <Plug>(easymotion-s)
:map e <Plug>(easymotion-bd-jk)
:map ; <Plug>(easymotion-repeat)
:map \ <Plug>(easymotion-prefix)
:map [[ ?{<CR>w99[{:call AlignToFunction()<CR>:noh<CR>zt
:map ]] j0[[/{<CR>%/{<CR>:call AlignToFunction()<CR>:noh<CR>zt
"∆ (meta-j) makes line down, ˚ (meta-k) makes line up
:noremap ∆ o<Esc>
:noremap ˚ O<Esc>
:noremap <S-Left> gT
:noremap <S-Right> gt
:noremap <Left> <C-W>h
:noremap <Right> <C-W>l
:noremap <Up> <C-W>k
:noremap <Down> <C-W>j
:noremap <C-@> @@
:noremap <C-]> <C-]>zt
:noremap <S-W> :w<CR>
:noremap <S-E> :Explore<CR>
:noremap <C-G> :call NumberToggle()<CR>:<BS>
:noremap <C-H> _
:noremap <C-L> $
:noremap <C-P> :noh<CR>:<BS>
:noremap <C-N> :NERDTree<CR>
:noremap Ω :set nonumber<CR>:set norelativenumber<CR>
:noremap ≈ :set number<CR>:set relativenumber<CR>
:noremap <Home> :tabnew<CR>
:noremap <S-Home> :vspli<CR>
:vnoremap // y/<C-R>"<CR>
:vnoremap <C-N> :normal
:vnoremap <C-K> :call FocusRange()<CR>:<BS>
:set runtimepath+=/full/path/to/plugin/directory/
:inoreabbrev {} {<CR> <BS><CR>}<Up><End>
":call AddToGit() adds current file that's open in VIM to git repository
":call CreateDirectory() creates the directory for folder of newly established
" file that was called upon using 'vim <filename with nonexistent directory>
" so that it can be saved
":call DisplayGitGraph() shows the full graph of all the branches and history
" for the git repository
":call FormatTreeOutput() formats the output for the CSE462 project2
":call FormatCurlyBrackets() formats curly braces for readability
":call GoToMiddle() sets cursor to middle of the line
":call TotalMatches() to see how many matches are for a search done
":call TabOrComplete() to set tab as autocomplete while still maintaining tab function
":call SelectPrevAutoComplete() help maps ctrl-k to ctrl-p only when autocomplete
" menu is up
":call SelectNextAutoComplete() help maps ctrl-j to ctrl-n only when autocomplete
" menu is up
":call NumberToggle() switches between relative number and absolute number at
" a single command