LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-18-2013, 05:31 PM   #1
RudraB
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 262

Rep: Reputation: 23
vim conditional keymap when a tex file is open


I am trying to make a keymap that will call latexmk when .tex is available (it would be better if .tex is the currently open and active buffer)

I tried :

Code:
:nnoremap <Leader>lw :if filereadable('*.tex')<cr>up!<cr>:!latexmk -pdf<cr>endif<cr>
when trying to make latexmk -pdf run, but unfortunately, its just prompting those line in the window, and doing nothing like:

Code:
~
:if filereadable('*.tex')
:  up!
:  :call Tex_RunLaTeX()
:  endif
Press ENTER or type command to continue
kindly help.

(it will be great, as told, if this can be done when .tex is the currently open and active buffer.)
 
Old 07-01-2013, 02:06 AM   #2
anish2good
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Rep: Reputation: Disabled
vim commands auto completion with known words
http://www.youtube.com/watch?v=oJT1AQZ6uuY

vim commands auto completion with dictionary
http://www.youtube.com/watch?v=4Ew8j_drmbE

for more videos
zariga
 
  


Reply

Tags
keymap, vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to edit a .spec file in vim (E212: Can't open files for writing) subharaj Linux - Software 1 02-14-2012 03:14 AM
open new file with vim/gvim RudraB Programming 1 01-11-2012 05:31 AM
VIM: Split open same file and edit only 1 window encore4444 Programming 8 05-14-2011 10:40 PM
vim file.tex !latex file.tex & pdfdvi file.dvi & xpdf -remote sname -reload Mol_Bolom Linux - General 0 07-09-2009 07:46 PM
Ever used TeX, post your work. -- Tex Art Gallery barton Linux - Software 2 02-28-2006 02:29 AM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration