summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2022-05-09 03:56:41 -0500
committerMitsuo Tokumori <[email protected]>2022-05-09 03:56:41 -0500
commit835d17588c1fef809b885a3c65b2fc07c785a143 (patch)
tree48566d732ce4f923bf7fda30a01bb71b8a2b10a6
parent9e04edd1ce6c0c5510a624fcf0dbdd40ccf4f945 (diff)
downloaddotfiles-835d17588c1fef809b885a3c65b2fc07c785a143.tar.gz
dotfiles-835d17588c1fef809b885a3c65b2fc07c785a143.tar.bz2
dotfiles-835d17588c1fef809b885a3c65b2fc07c785a143.zip
Add ideavimrc for PyCharm Vim plugin
-rw-r--r--other/ideavimrc10
-rw-r--r--vim/vimrc6
2 files changed, 15 insertions, 1 deletions
diff --git a/other/ideavimrc b/other/ideavimrc
index f88b024..c746971 100644
--- a/other/ideavimrc
+++ b/other/ideavimrc
@@ -32,12 +32,20 @@ set ignorecase
set smartcase
set showmode
nnoremap <C-L> :nohl<CR><C-L>
+nnoremap <F7> :tabp<CR>
+nnoremap <F8> :tabn<CR>
""" IdeaVim options
+" Join and justify paragraphs/lines
set ideajoin " smartjoin
+vnoremap gq :action FillParagraph<CR>
+" Thank you: https://stackoverflow.com/a/37842786/7498073
+" TIP: Got the action name by listing all actions that contain the word fill
+" `:actionlist fill`
"set ideamarks
""" Plugins
+" Couldn't make it to work well :(
" https://github.com/abrookins/WrapToColumn
-nmap gq :action com.andrewbrookins.idea.wrap.WrapAction<CR>
+" vnoremap gq :action com.andrewbrookins.idea.wrap.WrapParagraphAction<CR>
diff --git a/vim/vimrc b/vim/vimrc
index 42fcc69..b891c31 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -159,12 +159,18 @@ map <S-F11> :cprev<CR>
" <Leader> = '\' when 'mapleader' is empty
" Change to the directory of the current file and generate tags recursively
" there.
+
+""" Usage of utilities
+"" ctags
" TODO: make the change of directory whenever a .c .cpp .h file is opened
map <Leader>rt :cd %:h<CR>:!ctags -R .<CR>
map <C-\> :tnext<CR>
" Motion to go to beggining of function while cursor is inside
nmap [f [m[{k0
+" pandoc
+nnoremap gm :w<CR>:Md2Html<CR><CR><CR>
+
" Funcionallity of the following depends on terminal (8bit input enabled needed
" for <Meta> = Alt key combos
" From: https://vim.fandom.com/wiki/Get_Alt_key_to_work_in_terminal