From 835d17588c1fef809b885a3c65b2fc07c785a143 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Mon, 9 May 2022 03:56:41 -0500 Subject: Add ideavimrc for PyCharm Vim plugin --- other/ideavimrc | 10 +++++++++- vim/vimrc | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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 :nohl +nnoremap :tabp +nnoremap :tabn """ IdeaVim options +" Join and justify paragraphs/lines set ideajoin " smartjoin +vnoremap gq :action FillParagraph +" 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 +" vnoremap gq :action com.andrewbrookins.idea.wrap.WrapParagraphAction diff --git a/vim/vimrc b/vim/vimrc index 42fcc69..b891c31 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -159,12 +159,18 @@ map :cprev " = '\' 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 rt :cd %:h:!ctags -R . map :tnext " Motion to go to beggining of function while cursor is inside nmap [f [m[{k0 +" pandoc +nnoremap gm :w:Md2Html + " Funcionallity of the following depends on terminal (8bit input enabled needed " for = Alt key combos " From: https://vim.fandom.com/wiki/Get_Alt_key_to_work_in_terminal -- cgit v1.2.3