diff --git a/.gitignore b/.gitignore index 3c53d4e..bf1c115 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ xsrf/cookies.txt rcmain user-dirs.dirs dot/file/vim/pack +dot/file/vim/autoload diff --git a/dot/file/profile b/dot/file/profile index 5e6eb52..cc00acf 100755 --- a/dot/file/profile +++ b/dot/file/profile @@ -49,6 +49,8 @@ export_loop \ ANDROID_NDK_HOME '$HOME/app/android/ndk' \ GIT 'https://github.com/$USER' \ PATH '$HOME/exe:$HOME/.local/bin:$PATH' \ + PERSONAL_SHELL 'sh' \ + MYVIMRC '$HOME/.vimrc'\ test -r $SETENV && . "$SETENV" && setenv profile diff --git a/dot/file/vimrc b/dot/file/vimrc index fa5988e..2fdb6d7 100644 --- a/dot/file/vimrc +++ b/dot/file/vimrc @@ -1,4 +1,5 @@ " k1574's shitty vimrc. + " Mouse. " In many terminal emulators the mouse works just fine. " By enabling it you can position the cursor, @@ -68,6 +69,9 @@ cnoremap b cnoremap f vnoremap // y/\V=escape(@",'/\') +" vimrc interaction. + nnoremap confe :e $MYVIMRC + nnoremap confr :source $MYVIMRC " File types. autocmd FileType javascript setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0 autocmd FileType javascriptreact setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0 @@ -75,6 +79,7 @@ autocmd FileType css setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0 autocmd FileType html setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0 autocmd FileType htmldjango setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0 + autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=0 " Jump to the last pos. " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler