On Tuesday, June 18, 2013 11:20:18 AM UTC-5, ankur gupta wrote:
> Hi, 
> 
> Thanks for clarifying the localleader concept. Since I have just extracted
> 
> the tar file of the package in my ~/.vim directory, I am not sure how to set
> 
> the txtfmt to follow the local leader, so that when I type -i (or similar)
> 
> it shows me prompt to enter formatting commands... (such as cg for green
> 
> color text)
> 
> 
> 
> The steps I followed after extracting the tar file
> 
> :let maplocalleader = "-"
> 
> :set ft=txtfmt
> 
> 
> 
> I am not sure if following is also needed
> 
> :map - \DoItNow
> 
> 
> 
> Basically I am trying to find a way, such that, typing <LocalLeader>i will
> 
> not lead to insert mode, rather prompts me to type more txtfmt tokens.. 

Ankur,
I did...
let maplocalleader = "-"
set ft=txtfmt
...just as you did, and -i brings up the Txtfmt prompt for me.

Things to check...

Do you have filetype plugins enabled: e.g., a line similar to...
:filetype plugin on
...somewhere in your vimrc?

Do you see ftplugin/txtfmt.vim in the output of...
:scriptnames
...after you set ft=txtfmt?

Brett S.

> 
> 
> 
> Thanks for quick reply,
> 
> Ankur
> 
> 
> 
> 
> 
> 
> 
> --
> 
> View this message in context: 
> http://vim.1045645.n5.nabble.com/txtfmt-not-starting-the-prompt-on-i-tp5716065p5716093.html
> 
> Sent from the Vim - General mailing list archive at Nabble.com.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to