removed some nonfunctional stuff

This commit is contained in:
Gabe Venberg 2018-02-17 16:39:46 -06:00
parent 20e0b8161a
commit 2e61cc3205

View file

@ -1,4 +1,4 @@
"inital, more techinal settings "initial, more technical settings
"this sets what sort of folding method to use. "this sets what sort of folding method to use.
let foldtype="basicindent" let foldtype="basicindent"
@ -23,10 +23,10 @@ filetype plugin on
"adds a ruler to the side of the screen "adds a ruler to the side of the screen
set number set number
"makes the ruler show how many lines away a given line is from your cursour "makes the ruler show how many lines away a given line is from your cursor
"set relativenumber "set relativenumber
"displays the cooridnates of your cursour in the statusbar "displays the coordinates of your cursour in the statusbar
set ruler set ruler
"scrollofff sets the number of lines from the top or bottom of the screen before vim will scroll. sidescroll off does the same thing for the sides of the window "scrollofff sets the number of lines from the top or bottom of the screen before vim will scroll. sidescroll off does the same thing for the sides of the window
@ -40,7 +40,7 @@ filetype plugin on
set ignorecase set ignorecase
set smartcase set smartcase
"this allows puting the cursor just after the last characher fo the line. "this allows putting the cursor just after the last character of the line.
"set virtualedit=onemore "set virtualedit=onemore
"show unfinished commands on the RIGHT side of the statusbar. yes, it is working. "show unfinished commands on the RIGHT side of the statusbar. yes, it is working.
@ -56,7 +56,7 @@ filetype plugin on
"keycodes time out fast, mappings have a bit longer "keycodes time out fast, mappings have a bit longer
set timeout timeoutlen=1000 ttimeout ttimeoutlen=10 set timeout timeoutlen=1000 ttimeout ttimeoutlen=10
"make it so the session feature wont overwrite our vimrc if the vimrc has newer bindings than this a session. "make it so the session feature wont overwrite our vimrc if the vimrc has newer bindings than this session.
set sessionoptions-=options set sessionoptions-=options
"tab stuff "tab stuff
@ -69,14 +69,11 @@ filetype plugin on
set smarttab set smarttab
"highlighting/colour stuff "highlighting/colour stuff
"sets the colorscheme. to get a list of the avalible colors, do :colorscheme <Space> <C-d> "sets the colorscheme. to get a list of the available colors, do :colorscheme <Space> <C-d>
colorscheme ron colorscheme ron
syntax enable syntax enable
"highlights trailing spaces
highlight extra_white_space ctermbg=red guibg=red
match extra_white_space /\s+$/
"highlight search results "highlight search results
set hlsearch set hlsearch
@ -99,7 +96,7 @@ filetype plugin on
"spacebar opens or closes a fold in normal mode "spacebar opens or closes a fold in normal mode
nmap <Space> za nmap <Space> za
"insert folding: really baisic fold method. eventually I may make some custom folds, but with the foldtext fixed a bit, this shouldnt annoy me too mutch. "insert folding: really basic fold method. eventually I may make some custom folds, but with the foldtext fixed a bit, this shouldn't annoy me too much.
if foldtype ==# "basicindent" if foldtype ==# "basicindent"
"make vim fold automatically based on indentation. "make vim fold automatically based on indentation.
set foldmethod=indent set foldmethod=indent
@ -117,23 +114,16 @@ filetype plugin on
set foldtext=Minimal_foldtext() set foldtext=Minimal_foldtext()
endif endif
"usefull keybinds "useful keybinds
"spell checking "spell checking
"toggle spell checking "toggle spell checking
map <leader>ss :setlocal spell!<Enter> map <leader>ss :setlocal spell!<Enter>
" "shortucts using leader " shortcuts using leader
" noremap <leader>sn ]s " noremap <leader>sn ]s
" noremap <leader>sp [s " noremap <leader>sp [s
" noremap <leader>s? z= " noremap <leader>s? z=
"normal mode keybinds
"control o: insert line below
nmap <C-o> o<esc>
"alt=a: select all
nmap <silent> <A-a> :keepjumps normal ggVG<Enter>
"navigating splits: Control+hjkl will move from split to split "navigating splits: Control+hjkl will move from split to split
nmap <C-h> <C-w>h nmap <C-h> <C-w>h
nmap <C-j> <C-w>j nmap <C-j> <C-w>j