1
0
Fork 0

moar updates

This commit is contained in:
Von Random 2016-02-19 12:56:59 +03:00
parent 8b35ee3f71
commit 419f025ad4
3 changed files with 43 additions and 42 deletions

4
vimrc
View file

@ -38,11 +38,13 @@ autocmd BufNewFile *.rb 0put =\"#!/usr/bin/env ruby\<nl>\"|$
autocmd BufNewFile *.py 0put =\"#!/usr/bin/env python3\<nl>\"|$
autocmd BufNewFile *.pl 0put =\"#!/usr/bin/env perl\<nl>\use strict;\<nl>\use warnings;\<nl>\use feature 'say';\<nl>\"|$
autocmd FileType python setlocal softtabstop=4 shiftwidth=4 colorcolumn=80 textwidth=80 smarttab expandtab autoindent
autocmd FileType python setlocal softtabstop=4 shiftwidth=4 colorcolumn=80 smarttab expandtab autoindent
" maps
let mapleader = ","
noremap <F1> <Esc>
"fold/unfold via spacebar
nnoremap <Space> za
"enable cursorline on demand
nnoremap <Leader>c :set cursorline!<CR>
"clear search highlight