-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.txt
57 lines (43 loc) · 1.66 KB
/
vimrc.txt
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
set nocompatible
so ~/.vim/bundle/plugins.vim
syntax enable
colorscheme ron
set linebreak "this make words braking look more smooth"
set number "to make numbers appear.
let mapleader=','
set wildmenu "gives suggestion for tabbing like zsh.
set scrolloff=5 "when scrolling down courser stays on5 line above or down during scroling
set undolevels=1000
"<-------------Searching ------------->"
set hlsearch
set t_CO=256 "set terminal to read 256bit color spe ctroom"
set incsearch
"make NEARDtree easyer to use"
nmap <C-1> :NEARDTreeToggle<cr>
"<---------------Mapping----------->"
"Make it easy to edit the VIMRC"
nmap <Leader>ev :tabedit $MYVIMRC<cr>
nmap <Leader><space> :nohlsearch<cr>
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") |
exe "normal! g'\"" | endif
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
"<--------------Spliti Managment----------->"
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-H> <C-W><C-H>
nmap <C-L> <C-W><C-L>
"---------------Vim-Airline-------------------"
set laststatus=2
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#left_alt_sep = '|'
let g:airline#extensions#tabline#enabled = 1
set pastetoggle=<F2> " Turn on/off the set paste (this make copping from outside normally )
"---------------Indentation-Guides-------------------"
set listchars=tab:\|\
set tabstop=4
set shiftwidth=4
set expandtab